#ifndef sm
#define BLACK 0
#define RED 1

#define CLUB 0
#define DIAMOND 1
#define HEART 2
#define SPADE 3

#define card_suit(card) ((card) & 3)
#define card_value(card) ((card) >> 2)
#define card_color(card) ((card_suit(card) + 1) & 2)
#endif
